package it.eporicerca.enea.ejb;

import it.eporicerca.enea.ejb.interceptors.PerfomanceProfiler;

import javax.ejb.EJB;
import javax.ejb.Remote;
import javax.ejb.Stateless;
import javax.interceptor.Interceptors;

@Stateless
@Remote
@Interceptors({PerfomanceProfiler.class})
public class EchoBean implements Echo {

	@EJB
	private Log logger;
	
	public String echo(String echo) {
		
		logger.log(echo);
		return echo;
	}

}
